package yyy.ab.logging.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.aspectj.lang.ProceedingJoinPoint;
import org.springframework.scheduling.annotation.Async;
import yyy.ab.common.core.ResultBean;
import yyy.ab.logging.entity.SysLog;

import java.util.Map;

/**
 * 系统日志服务接口
 */
public interface SysLogService extends IService<SysLog> {

    /**
     * 分页查询
     *
     * @return
     */
    IPage<SysLog> findPage(Map<String, Object> params);

    /**
     * 保存日志
     */
    @Async
    void save(String username, String browser, String ip, ProceedingJoinPoint joinPoint,StringBuilder params, SysLog log);
}
